// 机读阅卷模块接口
import { useUserStore } from '/@/store/modules/user'
import { request } from '/@/utils/http/axios'
// 获取科目列表

const userStore = useUserStore()

export const getNeedWorkJdKmdmAndKs = params => {
  return request({
    url: '/sys/getNeedWorkJdKmdmAndKs',
    method: 'get',
    params,
    headers: {
      token: userStore.getAuthority,
    },
  })
}
// 获取图片列表
export const getZyImgByKmdmAndZkzh = params => {
  return request({
    url: '/sys/getZyImgByKmdmAndZkzh',
    method: 'get',
    params,
    headers: {
      token: userStore.getAuthority,
    },
  })
}
// 获取机读信息列表
export const getCustomJdInfoStList = params => {
  return request({
    url: '/sys/getCustomJdInfoStList',
    method: 'get',
    params,
    headers: {
      token: userStore.getAuthority,
    },
  })
}
// 获取机读信息列表
export const handUpLoadJdAnswer = params => {
  return request({
    url: '/sys/handUpLoadJdAnswer ',
    method: 'POST',
    params,
    headers: {
      token: userStore.getAuthority,
    },
  })
}

// 获取最新一次答案
export const getLastOneHandJdInfo = params => {
  return request({
    url: '/sys/getLastOneHandJdInfo',
    method: 'get',
    params,
    headers: {
      token: userStore.getAuthority,
    },
  })
}
// 获取所有考生
export const findKsList = params => {
  return request({
    url: `/sys/findKsList`,
    method: 'GET',
    params,
  })
}
